package com.Iron.Service.Impl;

import com.Iron.Mapper.AccountMapper;
import com.Iron.Service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service("accountService")
public class AccountServiceImp implements AccountService {

    @Autowired
    private AccountMapper accountMapper;

    public void transferMone(String out, String in, Integer money) {
        accountMapper.decrMoney(out, money);
        int i = 1/0;
        accountMapper.incrMoney(in, money);
    }
}
